Search found 1865 matches

by Gothmog
Mon May 29, 2017 4:04 am
Forum: Logistics SD
Topic: Billing Documnet get Printed on Print Preview
Replies: 1
Views: 2166

Re: Billing Documnet get Printed on Print Preview

This looks like an error in the print program of the output - it does not seem to send the preview parameter (US_SCREEN, usually) to the print options of the form.
by Gothmog
Wed May 24, 2017 3:38 am
Forum: Logistics PM
Topic: Looking for BAPI to change status of a function location
Replies: 1
Views: 1417

Re: Looking for BAPI to change status of a function location

Depends on the status you want to set.
Look in function group ITOB_BAPI_FL, there are several function modules available:
IBAPI_FUNCLOC_USERSTATUS_CHANG, IBAPI_FUNCLOC_SET_INACTIVE, IBAPI_FUNCLOC_SET_DELFLAG...
by Gothmog
Mon Apr 24, 2017 6:41 am
Forum: Logistics SD
Topic: Variant Config mysterious error with object dependency
Replies: 1
Views: 2084

Re: Variant Config mysterious error with object dependency

Code: Select all

IF QUAN_1Specified
Aren't you missing a space here, after QUAN_1?
by Gothmog
Fri Mar 24, 2017 11:05 am
Forum: ABAP
Topic: select-options database table structure
Replies: 3
Views: 2683

Re: select-options database table structure

I'm afraid you'll have to do something like in table TVARVC: save the lines of the ranges and a counter. You could use serialization/deserialization with simple transformation ID to store the table as an xml string, though. Here is some sample code: DATA: r_mstae_from TYPE RANGE OF mara-mstae, r_mst...
by Gothmog
Mon Mar 06, 2017 4:49 am
Forum: ABAP
Topic: Advice for a Tree-like Data Structure please!
Replies: 1
Views: 1752

Re: Advice for a Tree-like Data Structure please!

HI,
I think the blocking point for using these classes would be :
The child could also have multiple parents
.
The built-in assumption is a single parent for a node.
by Gothmog
Tue Feb 07, 2017 8:14 am
Forum: Logistics MM
Topic: Classification: Characteristic with more than 30 chars
Replies: 1
Views: 1663

Re: Classification: Characteristic with more than 30 chars

In the name of the characteristic ? No, not without heavily modifying the standard.
by Gothmog
Fri Jan 20, 2017 9:35 am
Forum: ABAP
Topic: Strugling with SELECT
Replies: 17
Views: 7580

Re: Strugling with SELECT

For the last HU being ****, move this :

Code: Select all

<l_field> = RP_HU.
before this

Code: Select all

  AT LAST.
    EXIT.
  ENDAT.
by Gothmog
Wed Jan 18, 2017 11:14 am
Forum: ABAP
Topic: Strugling with SELECT
Replies: 17
Views: 7580

Re: Strugling with SELECT

The typo was :

Code: Select all

IF <ls_data> IS NOT ASSIGNED.
  ASSIGN  ('%dtab') TO <ls_data>. "not <lt_data>
ENDIF.
by Gothmog
Wed Jan 18, 2017 8:01 am
Forum: ABAP
Topic: Strugling with SELECT
Replies: 17
Views: 7580

Re: Strugling with SELECT

Oh, it_hus declaration should be

Code: Select all

DATA: it_hus TYPE STANDARD TABLE OF VBFA-VBELN.
(I copy-pasted your code on this section).
by Gothmog
Wed Jan 18, 2017 5:08 am
Forum: ABAP
Topic: Strugling with SELECT
Replies: 17
Views: 7580

Re: Strugling with SELECT

At this point, you'd better stop torturing Queries and start writing custom programs. Here, you'll have to mess with field symbols, internal table... But you could try this: - in the DATA code section, declare these : FIELD-SYMBOLS: <lt_data> TYPE STANDARD TABLE, <ls_data> TYPE ANY, <l_field> TYPE A...
by Gothmog
Tue Jan 17, 2017 5:56 am
Forum: ABAP
Topic: Strugling with SELECT
Replies: 17
Views: 7580

Re: Strugling with SELECT

OK, here's are a fex ways you could do this. With SELECT...ENDSELECT : CLEAR RP_HU. SELECT VBELN FROM VBFA INTO RP_HU WHERE VBELV = LIKP-VBELN AND VBTYP_N = 'X'. "do whatever you want here with this document number ENDSELECT. IF sy-subrc <> 0. "no document found "try selecting in VTFA ENDIF. With in...
by Gothmog
Tue Jan 17, 2017 5:23 am
Forum: ABAP
Topic: Strugling with SELECT
Replies: 17
Views: 7580

Re: Strugling with SELECT

If you use SELECT SINGLE, you get only one line (at most). With SELECT ..... ENDSELECT, the program will loop at the four entries, and for each execute the code that is between the SELECT and the ENDSELECT instruction. That's why ou're left with the last one after the loop. You could also use SELECT...
by Gothmog
Wed Dec 21, 2016 5:34 am
Forum: ABAP
Topic: Help with Stock report
Replies: 1
Views: 1766

Re: Help with Stock report

The consignement stock is not in any storage location - it's at the customer's.
You could add the entries of MSKU to your internal table with an empty storage location, I guess.

But if you're looking for an easy table join in a query, well... not so easy, you'll have to code.
by Gothmog
Mon Dec 19, 2016 11:17 am
Forum: Logistics SD
Topic: Manual printing of invoices generated in batch
Replies: 3
Views: 2558

Re: Manual printing of invoices generated in batch

Set it to dispatch time 3 (Send with application own transaction) in the condition records, and have the user run transaction VF31 to print what he wants?
by Gothmog
Wed Dec 07, 2016 11:15 am
Forum: ABAP
Topic: SQ01/Infoset Query suppress zeros
Replies: 7
Views: 4818

Re: SQ01/Infoset Query suppress zeros

You need the name of the node between quotes :

Code: Select all

IF quantity1 = 0 AND quantity2 = 0.
  REJECT 'MYNODENAME'.
ENDIF.