‎2010 Jun 04 10:03 AM
Hello Experts,
I was trying to create a sales document using FM 'SD_SALESDOCUMENT_CREATE'.
I'm passing Header, Item and Configuration details in respective structures.
It is creating Header and Item data but Configuration data for target quantity in the iten overview screen and
QTY in the condition tab of the item is not getting populating at the same time. If target quantity is fillend the QTY in condiotin tabe is not getting populated or vice versa.
Can anyone tell me how to configure item material in above FM.
thanks
khushy
‎2010 Jun 04 10:08 AM
Hi,
Fill the Quantity details in SALES_SCHEDULES_IN & SALES_SCHEDULES_INX structures also. Pass quantity in the structure field SALES_SCHEDULES_IN-REQ_QTY.
Regards
Vinod
‎2010 Jun 04 10:21 AM
thanks vinod for reply . But i have done that still my QTY filed on the condition item tab is blank
please help!!!!
regards,
khushy
‎2010 Jun 04 10:31 AM
Hi,
After filling SCHEDULE LINE structures, does the quantity field is updating at item level (VBAP)?
Regards
Vinod
‎2010 Jun 04 10:38 AM
targert quantity is not filled but the order quantity in VBAP is filled
regds
khushy
‎2010 Jun 04 10:48 AM
Hi,
Update the structure field ORDER_ITEMS_IN-TARGET_QTY also.
Regards
Vinod
‎2010 Jun 04 11:05 AM
Vinod ...thats the only problem i filled that tooo still its not coming up in the order
‎2010 Jun 04 11:15 AM
Hi, see the sample code below, cross check this with your code.
fill item & item flags
wa_itemordx-updateflag = 'I'.
wa_itemord-itm_number = <item no>
wa_itemord-material = <material no>.
wa_itemord-plant = <plant>.
wa_itemord-target_qty = <quantity>.
wa_itemordx-itm_number = 'X'.
wa_itemordx-material = 'X'.
wa_itemordx-plant = 'X'.
wa_itemordx-target_qty = 'X'.
append wa_itemordx to it_itemordx.
append wa_itemord to it_itemord.
*Fill schedule lines
wa_schedules_in-itm_number = <item no>.
wa_schedules_in-sched_line = '0001'.
wa_schedules_in-req_qty = <quantity>.
append wa_schedules_in to it_schedules_in.
* Fill schedule line flags
wa_schedules_inx-itm_number = <item no>
wa_schedules_inx-sched_line = '0001'.
wa_schedules_inx-updateflag = 'X'.
wa_schedules_inx-req_qty = 'X'.
append wa_schedules_inx to it_schedules_inx.Regards
Vinod
‎2010 Jun 04 11:35 AM
vinod i tried exactly the same what you have posed still my target quantity is coming blank
‎2010 Jun 04 12:23 PM
Just a small thing .... is it something like that for credit memos which will created from outside (means not manually)...target quality at item line will not be displayed only quanity in condition tab inside .... will be populated. i am trying to create a credit memo
please suggest
regards,
khushy